package org.jackysoft.service;

import java.util.Collection;
import java.util.List;

import org.jackysoft.data.ServiceProvider;
import org.jackysoft.entity.HtmlFormElement;

public interface HtmlFormElementService extends ServiceProvider<HtmlFormElement> {

	/**
	 * @return
	 *   true if the workflow entry has html saved ,visa false
	 * 
	 * **/
	boolean hasElement(long refid);
	
	Collection<HtmlFormElement> findByWorkflow(long refid);
	
	void saveFormElement(final long workflowId, final boolean effect,
			final String template,
			final List<HtmlFormElement> formElements);
}
